define(function () {
    return function (goods, all) {
        all.parent().remove()
        let arr = []
        for (let i = 0; i < goods.length; i++) {
            if (goods[i].status !== "icon-gouxuankuang1") {
                console.log(i)
                console.log(goods[i])
                arr.push(goods[i])
            }
        }
        console.log(arr)
        goods = arr
        localStorage.setItem("goods", JSON.stringify(goods))
    }
});